import * as React from "react";

interface Props {
  render: (arg: boolean) => {};
}

export default function Cat(props: Props) {
  const [online, setOnline] = React.useState<boolean>(false);
  const handleClick = () => {
    setOnline(!online);
  };
  return (
    <div style={{ cursor: "pointer" }} onClick={handleClick}>
      {props.render(online)}
    </div>
  );
}
